/** 播放资源类型 播放清单 | 单个资源 */
export enum ViewResourceType {
  播放清单 = '1',
  单个资源 = '2',
  本地资源 = '3',
  固定资源 = '4'
}
export const ViewResourceTypeObj: ValueEnumMap<string> = new Map([
  [
    ViewResourceType.播放清单,
    {
      text: '播放清单',
      color: '#1677FF'
    }
  ],
  [
    ViewResourceType.单个资源,
    {
      text: '单个资源',
      color: '#389e0d'
    }
  ],
  [
    ViewResourceType.本地资源,
    {
      text: '本地资源',
      color: '#cf1322'
    }
  ],
  [
    ViewResourceType.固定资源,
    {
      text: '固定资源',
      color: '#cf1322'
    }
  ]
]);

// 终端类型 播放器: 0 一体机: 1
export enum TerminalType {
  播放器 = '0',
  一体机 = '1'
}
export const TerminalTypeObj: ValueEnumMap<string> = new Map([
  [
    TerminalType.播放器,
    {
      text: '播放器',
      color: 'green'
    }
  ],
  [
    TerminalType.一体机,
    {
      text: '一体机',
      color: 'blue'
    }
  ]
]);

/* 文件类型 */
// VIDEO("视频", "video/"),
// IMAGE("**图片", "image/"),
// PPT("PPT", "application/vnd.ms-powerpoint", "application/vnd.openxmlformats-officedocument.presentationml.presentation"),
// PDF("PDF", "application/pdf"),
// AUDIO("音频", "audio/"),
// URL("链接", "url"),
// IMG_TEXT("图文", "imgText"),
// UNKNOWN("未知类型", "");**
export enum FileType {
  VIDEO = '视频',
  IMAGE = '图片',
  PPT = 'PPT',
  PDF = 'PDF',
  AUDIO = '音频',
  URL = '链接',
  IMG_TEXT = '图文',
  UNKNOWN = '未知类型'
}
export const FileTypeObj: ValueEnumMap<string> = new Map([
  [
    FileType.VIDEO,
    {
      text: '视频',
      color: '#f50'
    }
  ],
  [
    FileType.IMAGE,
    {
      text: '图片',
      color: '#1890ff'
    }
  ],
  [
    FileType.PPT,
    {
      text: 'PPT',
      color: '#2db7f5'
    }
  ],
  [
    FileType.PDF,
    {
      text: 'PDF',
      color: '#87d068'
    }
  ],
  [
    FileType.AUDIO,
    {
      text: '音频',
      color: '#108ee9'
    }
  ],
  [
    FileType.URL,
    {
      text: '链接',
      color: '#87d068'
    }
  ],
  [
    FileType.IMG_TEXT,
    {
      text: '图文',
      color: '#f50'
    }
  ],
  [
    FileType.UNKNOWN,
    {
      text: '未知类型',
      color: '#909399'
    }
  ]
]);

/** 设备控制 1: 开 0: 关 */
export enum DeviceControl {
  开 = 1,
  关 = 0
}
export const DeviceControlObj: ValueEnumMap<number> = new Map([
  [
    DeviceControl.开,
    {
      text: '开',
      color: 'green'
    }
  ],
  [
    DeviceControl.关,
    {
      text: '关',
      color: 'blue'
    }
  ]
]);

/** 分屏 */
export enum ScreenNum {
  单屏 = 1,
  两分屏 = 2,
  三分屏 = 3
}
export const ScreenNumObj: ValueEnumMap<number> = new Map([
  [
    ScreenNum.单屏,
    {
      text: '单屏',
      color: 'green'
    }
  ],
  [
    ScreenNum.两分屏,
    {
      text: '两分屏',
      color: 'blue'
    }
  ],
  [
    ScreenNum.三分屏,
    {
      text: '三分屏',
      color: 'blue'
    }
  ]
]);

// 情景模式，type传1，机械臂的时候传1国川15:12
export enum SceneType {
  展厅 = 0,
  机械臂 = 1
}
